package com.gotloop.dao;

import com.gotloop.jdo.UserProfile;

/**
 * User Data Access Object.
 * @author jibhaine
 *
 */
public interface UserDAO extends AbstractDAO<UserProfile, String> {

	/**
	 * Retrieve an User by its name. 
	 * @param name String : the name
	 * @return null if no match found.
	 */
	UserProfile getUserByName(String name);

	/**
	 * Retrieve an User by its email. 
	 * @param email String : the email
	 * @return null if no match found.
	 */
	UserProfile getUserByEmail(String email);
	
}
